package wx.template;

import java.util.HashMap;
import java.util.Map;

/**
 * 消息模版
 *
 * @author zhanglinfeng
 * @date create in 2024/3/15 10:42
 */
public abstract class BaseTemplate {
    private String templateId;
    private String userId;
    private String userName;

    public abstract Map<String, Map<String, String>> getData(Object... args);

    protected final Map<String, String> getValueMap(String value) {
        Map<String, String> map = new HashMap<>();
        map.put("value", value);
        return map;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
